﻿using ApiLib.AppStart;
using SqlSugar;

namespace ApiLib.Models;

/// <summary>
/// 文件历史信息
///</summary>
[Tenant(GlobalConstants.MainDbConfigId), SugarTable("sys_file_history_info")]
public class SysFileHistoryInfo
{
    /// <summary>
    ///  
    ///</summary>
    [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)]
    public int Id { get; set; }

    /// <summary>
    /// 文件ID 
    ///</summary>
    [SugarColumn(ColumnName = "file_id")]
    public int FileId { get; set; }

    /// <summary>
    /// 版本 
    ///</summary>
    [SugarColumn(ColumnName = "version")]
    public string Version { get; set; }

    /// <summary>
    /// 唯一key 
    ///</summary>
    [SugarColumn(ColumnName = "key")]
    public string Key { get; set; }

    /// <summary>
    /// 地址 
    ///</summary>
    [SugarColumn(ColumnName = "path")]
    public string Path { get; set; }

    /// <summary>
    /// 改变 
    ///</summary>
    [SugarColumn(ColumnName = "change")]
    public string Change { get; set; }

    /// <summary>
    /// 用户Id 
    ///</summary>
    [SugarColumn(ColumnName = "user_id")]
    public string UserId { get; set; }

    /// <summary>
    /// 用户名 
    ///</summary>
    [SugarColumn(ColumnName = "user_name")]
    public string UserName { get; set; }

    /// <summary>
    /// 创建时间 
    ///</summary>
    [SugarColumn(ColumnName = "create_time",InsertServerTime = true)]
    public DateTime CreateTime { get; set; }
}